Transposes minor keys to relative major#622
Conversation
When transcoding to Nashville or Roman notation, correctly transposes minor keys to their relative major for accurate representation. Fixes ChordPro#526
|
When you take a look at the |
|
For test I've used cho002 and cho010 (since 10 was one where nashville and roman notation are used). All output is what I expect it to be, see attached all input and output. |
Yes, except that I think it's just he opposite. The current release shows #2 and #6 (wrong) and the version with my changes shows 1 and 4 (correct). At least, that is what I see when I do that same test here, and what I'd expect. |
|
Let's split. t/cho/cho026.cho Desired output from t/cho/cho027.cho Desired output from |
cho026desired output output of new code output of current release cho027desired output output of new code output of current release So it turns out that roman doesn't work as expected yet. I'm going to take another look at the code if I can find why this happens. |
Ensures that the original key is used for Nashville notation calculations when the key has already been transcoded, preventing incorrect chord transformations. Fixes ChordPro#526
|
ok, I've updated the pr, now I also get the desired result for cho27 with the new code. |
|
Looks okay. |
I don't think I can do that on your repo? Or do you mean that I should create a new PR on the dev branch? |
|
I have rebased the PR and applied it. Thanks! |
|
I've added some test cases in Without this PR, tests Can you take a look? |
When transcoding to Nashville or Roman notation,
correctly transposes minor keys to their relative major
for accurate representation.
Fixes #526